package cn.cdm.rabbitmq;

import cn.cdm.domain.MiaoshaUser;

/**
 * 秒杀信息的类：包含秒杀用户，秒杀的商品
 */
public class MiaoshaMessage {

    private MiaoshaUser user;

    private long goodsId;
    public MiaoshaMessage(){}

    public MiaoshaMessage(MiaoshaUser user, long goodsId) {
        this.user = user;
        this.goodsId = goodsId;
    }

    public MiaoshaUser getUser() {
        return user;
    }

    public void setUser(MiaoshaUser user) {
        this.user = user;
    }

    public long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(long goodsId) {
        this.goodsId = goodsId;
    }
}
